package service;

import dao.DAOFactory;
import dao.UserDAOI;
import dto.User;

public class UserServices {
	public User checkUserAuthentication(String uname, String password){
		UserDAOI udao = DAOFactory.getUserDAO();
		if(udao.findUser(uname, password)){
			return udao.getUserDetails(uname);
		}
		return null;
	}
}
